package com.ruoyi.wq.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.mybatis.base.BaseEntity;

/**
 * 投票对象 wq_vote
 * 
 * @author ruoyi
 * @date 2022-11-09
 */
public class WqVote extends BaseEntity {
	
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 投票内容 */
    @Excel(name = "投票内容")
    private String message;

    /** 投票图片可多张","号分割 */
    @Excel(name = "投票图片可多张号分割")
    private String image;

    /** 发布人ID */
    @Excel(name = "发布人ID")
    private Long userId;

    /** 发布人头像 */
    @Excel(name = "发布人头像")
    private String avatar;

    /** 发布人昵称 */
    @Excel(name = "发布人昵称")
    private String nickName;

    /** 发布人手机号 */
    @Excel(name = "发布人手机号")
    private String phone;

    /** 经度 */
    @Excel(name = "经度")
    private String lon;

    /** 纬度 */
    @Excel(name = "纬度")
    private String lat;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 投票数量 */
    @Excel(name = "投票数量")
    private Long voteNum;

    /** 市排名 */
    @Excel(name = "市排名")
    private Long cityRank;

    /** 省排名 */
    @Excel(name = "省排名")
    private Long provinceRank;

    /** 用户性别（0男 1女 2未知） */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMessage(String message) 
    {
        this.message = message;
    }

    public String getMessage() 
    {
        return message;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setLon(String lon) 
    {
        this.lon = lon;
    }

    public String getLon() 
    {
        return lon;
    }
    public void setLat(String lat) 
    {
        this.lat = lat;
    }

    public String getLat() 
    {
        return lat;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setVoteNum(Long voteNum) 
    {
        this.voteNum = voteNum;
    }

    public Long getVoteNum() 
    {
        return voteNum;
    }
    public void setCityRank(Long cityRank) 
    {
        this.cityRank = cityRank;
    }

    public Long getCityRank() 
    {
        return cityRank;
    }
    public void setProvinceRank(Long provinceRank) 
    {
        this.provinceRank = provinceRank;
    }

    public Long getProvinceRank() 
    {
        return provinceRank;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("message", getMessage())
            .append("image", getImage())
            .append("userId", getUserId())
            .append("avatar", getAvatar())
            .append("nickName", getNickName())
            .append("phone", getPhone())
            .append("lon", getLon())
            .append("lat", getLat())
            .append("city", getCity())
            .append("province", getProvince())
            .append("voteNum", getVoteNum())
            .append("cityRank", getCityRank())
            .append("provinceRank", getProvinceRank())
            .append("sex", getSex())
            .append("age", getAge())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
